package io.finer.erp.jeecg.bas.service.impl;

import io.finer.erp.jeecg.bas.entity.ZrkFqjf;
import io.finer.erp.jeecg.bas.mapper.ZrkFqjfMapper;
import io.finer.erp.jeecg.bas.service.IZrkFqjfService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: 分切计费信息表
 * @Author: jeecg-boot
 * @Date:   2020-08-25
 * @Version: V1.0
 */
@Service
public class ZrkFqjfServiceImpl extends ServiceImpl<ZrkFqjfMapper, ZrkFqjf> implements IZrkFqjfService {
	@Override
	public ZrkFqjf getByMachine(String machineId) {
		LambdaQueryWrapper<ZrkFqjf> query = new LambdaQueryWrapper<>();
		query.eq(ZrkFqjf::getMachineType, machineId);
		ZrkFqjf fqjf = getOne(query);
		return fqjf;
	}
}
